package com.example.pufang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.PageParamRequest;
import com.example.pufang.pojo.House;
import com.example.pufang.pojo.User;
import com.example.pufang.vo.HouseFrontDetailVo;
import com.example.pufang.vo.HouseListVo;
import com.example.pufang.vo.PageListVo;

import java.util.List;

public interface HouseService extends IService<House> {

    Boolean publish(House house);

    List<HouseListVo> getHouseList(PageParamRequest pageParamRequest, String searchText, String district, Integer room,
                                   Integer parlor, Integer lavatory, String order);

    List<HouseListVo> getHouseCollectList(PageParamRequest pageParamRequest, Integer userId);

    List<HouseListVo> getHouseViewHistoryList(PageParamRequest pageParamRequest, Integer userId);

    List<HouseListVo> getHouseListByUserId(PageParamRequest pageParamRequest, Integer id);

    HouseFrontDetailVo getHouseDetail(String  id, User user);

    PageListVo getListByPage(PageParamRequest pageParamRequest, String searchName, String searchRealName, String searchPhone);

    Boolean ban(House house);

    Boolean cancelBan(House house);

}
